package com.lxy.openfeign.controller;

import com.lxy.openfeign.service.TestService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author lixinyang
 * @className: TestController
 * @description: TODO
 * @date 2022/04/30日  15:09
 */

@RestController
@Slf4j
public class TestController {

    @Resource
    private TestService testService;

    @GetMapping(value = "/sentinel2")
    public String sentinel2(){
        return testService.sentinel2();
    }

}
